exports.install = function (Vue, options) {
  Vue.prototype.jsp = function (method, data) {
    const baseUrl = 'https://apis.map.qq.com/ws/geocoder/v1/'
    let url = `${baseUrl}${method}?`
    for (let item in data) {
      url += `&${item}=${data[item]}`
    }
    return this.$jsonp(url)
  }
}
